package net.huashitong.common.dao;

import com.sirdc.modules.core.dao.GenericQuery;
import com.sirdc.modules.core.dao.StringDao;
import net.huashitong.common.entity.SysAnnouncement;
import net.huashitong.common.filter.SysAnnouncementFilter;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class SysAnnouncementDao extends StringDao<SysAnnouncement> {

    public List<SysAnnouncement> queryByFilter(SysAnnouncementFilter filter) {
        GenericQuery query = createQuery("t");
        return query.listResult(filter);
    }
}
